import{_ as d}from"./CodeView.vue.ac6474b3.js";import{o as i}from"./dialog.vue.59044578.js";import{h as m,a7 as t,l as u,o as v,E as _,R as o,V as e,u as a,S as b,Z as h,a6 as r}from"./entry.7966ba43.js";import{A as f}from"./user.727a597e.js";import"./_commonjsHelpers.725317a4.js";import"./index.eee8e6fd.js";import"./index.921dfe6e.js";import"./vnode.59757981.js";const y=o("div",{class:"mdh"},"页面效果",-1),k={class:"view"},g=o("div",{class:"mdh"},"顶部按钮区详细",-1),z=m({__name:"descheader",setup(C){const n=`
import { oHeader } from 'oneui'
const headerOptions = computed(() => {
  return {
    title: '用户列表',
    columns: [
      // 常规按钮，带点击事件
      {
        comtype: 'button',
        label: '添加用户',
        onClick() {
          AddUserDialog()
        }
      },
      // 常规按钮，带权限
      {
        comtype: 'button',
        label: '清空记录',
        perm:'operate.user.add',
        type: 'danger'
      },
      // 自定义 vnode
      {
        comtype: 'vnode',
        render() {
          return <div>可任意渲染JSX组件</div>
        }
      },
      // 搜索区可以渲染任意组件
      {
        prop: 'organizations_url',
        comtype: 'link',
        value: '跳转百度',
        onClick() {
          alert(1)
        }
      },
      // 搜索区可以渲染任意组件
      {
        prop: 'gender',
        comtype: 'checkbox',
        options: [
          { label: '男', value: 1 },
          { label: '女', value: 2 }
        ],
        value: '女'
      }
    ]
  }
})
`,l=t({});r("formData",l);const s=t({});r("eventData",s);const c=u(()=>({title:"用户列表",columns:[{comtype:"button",label:"添加用户",onClick(){f()}},{comtype:"button",label:"清空记录",perm:"operate.user.add",type:"danger"},{comtype:"vnode",render(){return e("div",null,[h("可任意渲染组件")])}},{prop:"organizations_url",comtype:"link",value:"跳转百度",onClick(){alert(1)}},{prop:"gender",comtype:"checkbox",options:[{label:"男",value:1},{label:"女",value:2}],value:"女"}]}));return(D,E)=>{const p=d;return v(),_(b,null,[y,o("div",k,[e(a(i),{headerOptions:a(c)},null,8,["headerOptions"])]),g,e(p,{code:n})],64)}}});export{z as default};
